// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'id',
        footer: "Foots",
        cnName: '工装夹具',
        name: 'tooling_fixtures',
        url: "/tooling_fixtures/",
        sortName: "id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"code":"","type":"","size":"","model":"","band":"","num":"","service_life":"","unit":"","supplier":"","remark":""};
    const editFormOptions = [[{"title":"序列号","field":"code","colSize":12,"type":"text"}],
                              [{"dataKey":"工装类型","data":[],"title":"类型","field":"type","colSize":12,"type":"select"}],
                              [{"title":"规格","field":"size","colSize":12,"type":"text"}],
                              [{"title":"型号","field":"model","colSize":6,"type":"text"},
                               {"title":"品牌","field":"band","colSize":6,"type":"text"}],
                              [{"title":"数量","field":"num","colSize":12,"type":"text"}],
                              [{"title":"使用寿命","field":"service_life","colSize":6,"type":"text"},
                               {"dataKey":"FLH_单位","data":[],"title":"单位","field":"unit","colSize":6,"type":"select"}],
                              [{"dataKey":"SLY_Supplier","data":[],"title":"供应商","field":"supplier","colSize":12,"type":"select"}],
                              [{"title":"备注","field":"remark","colSize":12,"type":"textarea"}]];
    const searchFormFields = {"code":"","type":"","unit":""};
    const searchFormOptions = [[{"title":"序列号","field":"code","type":"="},{"dataKey":"工装类型","data":[],"title":"类型","field":"type","type":"="},{"dataKey":"FLH_单位","data":[],"title":"单位","field":"unit","type":"="}]];
    const columns = [{field:'id',title:'主建id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'code',title:'序列号',type:'string',width:120,align:'left'},
                       {field:'type',title:'类型',type:'string',bind:{ key:'工装类型',data:[]},width:110,align:'left'},
                       {field:'size',title:'规格',type:'string',width:110,align:'left'},
                       {field:'model',title:'型号',type:'string',width:110,align:'left'},
                       {field:'band',title:'品牌',type:'string',width:110,align:'left'},
                       {field:'num',title:'数量',type:'int',width:110,align:'left'},
                       {field:'service_life',title:'使用寿命',type:'int',width:110,align:'left'},
                       {field:'unit',title:'单位',type:'string',bind:{ key:'FLH_单位',data:[]},width:120,align:'left'},
                       {field:'supplier',title:'供应商',type:'string',bind:{ key:'SLY_Supplier',data:[]},width:120,align:'left'},
                       {field:'remark',title:'备注',type:'string',width:120,align:'left'},
                       {field:'createdusername',title:'创建人',type:'string',width:120,align:'left'},
                       {field:'createdtime',title:'创建时间',type:'datetime',width:150,align:'left'},
                       {field:'updatetime',title:'更新时间',type:'datetime',width:150,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}